<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>帖子列表</title>
		<link href="<?=base_url("templates/default")?>/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<script src="<?=base_url("templates/default")?>/js/jquery.min.js"></script>
		<script src="<?=base_url("templates/default")?>/bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="<?=base_url("templates/default")?>/css/style.css" />
	</head>
	<body>
		<nav class="navbar navbar-default com_top">
			<a href="javascript:history.go(-1);">
				<span class="glyphicon glyphicon-menu-left"></span>
			</a>
			<h4 class="navbar-text">帖子列表</h4>
		</nav>
		<div class="container mgt icon_nav">
			<!--bs列表组-->
			<ul class="list-group list">
				<?php foreach ($getList as $eachlist){ ?>
				  	<li class="list-group-item">
				  		<a class="media-left" href="<?php echo base_url().'contents/index/'.$eachlist['id'];?>">
				    	<div class="row">
					    	<div class="col-xs-4">
					    		<img width="100%" class="media-object" src="<?php echo base_url('attachments'.$eachlist['focus']);?>" alt="哈士奇">
					    	</div>
					    	<div class="col-xs-8 article">
					    		<div class="article-title">
				    				<span class="label label-warning"><?php echo $eachlist['forum_name'];?></span>
									<span><?php echo $eachlist['addtime'];?></span>
					    		</div>
					    		<div class="descr">
					    			<?php echo $eachlist['contents'];?>
					    		</div>
					    	</div>
				    	</div>
				  		</a>
				  	</li>
			  	<?php }?>
			  	<!--  
			  	<li class="list-group-item">
			  		<a class="media-left" href="forum.html">
			    	<div class="row">
				    	<div class="col-xs-4">
				    		<img width="100%" class="media-object" src="img/gl.jpg" alt="哈士奇">
				    	</div>
				    	<div class="col-xs-8 article">
				    		<div class="article-title">
								<span class="label label-warning">哈士奇</span>
								<span>2018-11-14</span>
				    		</div>
				    		<p class="descr">
				    			从前有一只哈士奇......
				    			从前有一只哈士奇哈士奇哈士奇哈士奇哈士奇
				    		</p>
				    	</div>
			    	</div>
			  		</a>
			  	</li>	
			  	<li class="list-group-item">
			  		<a class="media-left" href="forum.html">
			    	<div class="row">
				    	<div class="col-xs-4">
				    		<img width="100%" class="media-object" src="img/gl.jpg" alt="哈士奇">
				    	</div>
				    	<div class="col-xs-8 article">
				    		<div class="article-title">
								<span class="label label-warning">哈士奇</span>
								<span>2018-11-14</span>
				    		</div>
				    		<div class="descr">
				    			从前有一只哈士奇......
				    		</div>
				    	</div>
			    	</div>
			  		</a>
			  	</li>
			  	-->		
			</ul>

			<div class="act-apply" style="margin: 0 2%">
				<button id="sendMsg" type="button" class="btn btn-primary btn-lg btn-block">发帖</button>
				<script type="text/javascript">
					$(document).ready(function(){
						$("#sendMsg").click(function(){
							window.location.href="http://www.baidu.com/";
						});
					});
				</script>
			</div>
			<!---分页-->
			<div class="page-tie">
				<ul class="pagination">
					<li><a href="#">&laquo;</a></li>
					<li><a href="#">1</a></li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">&raquo;</a></li>
				</ul>
			</div>
		</div>
		
	</body>
</html>
